package com.common.util;

import java.util.ArrayList;
import java.util.List;

public class DTOResponse <T>{

	List<T> list = new ArrayList<T>();
	int totalElements;
	
	public DTOResponse(List<T> t){
		list = t;
	}

	public List<T> getList() {
		return list;
	}

	public int getTotalElements() {
		return list.size();
	}
	
}
